//
//  FileChangeMonitor.h
//  OatosIOSClient
//
//  Created by YF-GY on 2016/12/15.
//  Copyright © 2016年 qycloud. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#define kOatosParamsName           @"name"

@class FileChangeMonitor;
@protocol FileChangeMonitorDelegate<NSObject>
-(void)FileChangeMonitorFileContentChanged:(FileChangeMonitor *)monitor;
-(void)FileChangeMonitorFileRenamed:(FileChangeMonitor *)monitor;
-(void)FileChangeMonitorFileRemoved:(FileChangeMonitor *)monitor;
-(void)FileChangeMonitorFileUpdated:(FileChangeMonitor *)monitor;
-(void)FileChangeMonitorFileclosed:(FileChangeMonitor *)monitor;
@end
@interface FileChangeMonitor : NSObject
@property (nonatomic,strong) NSDictionary *fileDic;
@property (nonatomic,strong) NSString *redifinedfileName;
@property (nonatomic,weak) id<FileChangeMonitorDelegate>delegate;
-(void)startMonitor;
-(instancetype)initWithFileDic:(NSDictionary *)fileDic preview:(BOOL)isPreview;
+(instancetype)monitorWithFileDic:(NSDictionary *)fileItem preview:(BOOL)isPreview;
@end
